package com.woniu.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年05月25日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("order_details")
@ApiModel("商品订单详情实体类")
public class OrderDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品订单详情表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("商品订单详情表id")
    private Long id;

    /**
     * 订单号
     */
    @TableField("order_num")
    @ApiModelProperty("订单号")
    private String orderNum;

    /**
     * 商品id
     */
    @TableField("goods_id")
    @ApiModelProperty("商品id")
    private Long goodsId;
    /**
     * 商品名称
     */
    @TableField("goods_name")
    @ApiModelProperty("商品名称")
    private String goodsName;
    /**
     * 商品图片
     */
    @TableField("goods_image")
    @ApiModelProperty("商品图片")
    private String goodsImage;

    /**
     * 商品单价
     */
    @TableField("goods_price")
    @ApiModelProperty("商品单价")
    private BigDecimal goodsPrice;

    /**
     * 数量
     */
    @TableField("goods_cont")
    @ApiModelProperty("商品数量")
    private Long goodsCont;

    /**
     * 收货人id
     */
    @TableField("user_id")
    @ApiModelProperty("收货人id")
    private Long userId;


}
